<?php

namespace app\api\logic;
use app\admin\logic\BasicLogic;
use think\facade\Db;
use app\api\logic\TrackLogic;
class ReconciliationLogic extends BasicLogic
{
    public function reconciliation_sf($checkbill_sf=[]){
        if(!$checkbill_sf)   return ['msg'=>'订单ID不能为空!'];
        if (!empty($checkbill_sf)) {
            //如果是SELF_PICKUP_EXPRESS
            if($checkbill_sf['code'] == "SELF_PICKUP_EXPRESS"){
                $checkbill_sf = (new TrackLogic())->reconciliationinfo_sf_self($checkbill_sf);
            }else{
                $checkbill_sf = (new TrackLogic())->reconciliationinfo_sf($checkbill_sf);
            }
        }
        return  true;
    }

}